from django.db import models

from user.models import User


# Create your models here.
# 用户登录后行为
class Interaction(models.Model):
    user = models.ForeignKey(User,on_delete=models.CASCADE,verbose_name='用户名')
    stories = models.TextField(verbose_name='评论故事')
    comments = models.TextField(verbose_name='用户评论')
    favorite = models.BooleanField(default=False,verbose_name='用户收藏')
    like = models.BooleanField(default=False,verbose_name='用户点赞')

    def __str__(self):
        return self.user.username


